This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
What I see is that the image extraction does not work for some set of documents. However, the same image does get extracted and saved correctly for another set of documents. No issues for that docs. Is there any possibility that the document where I am pasting these images are corrupted. If yes, is there any way to resolve this as my production data is just same like my development data.
If the images are corrupted is how can I figure that out and resolve that?
I have done error handling in my code, so that if even if there is any error the agent will continue from where the error was thrown.
Below is the code I'm running. Please let me know if you find any bugs or wrong usages in my code:
Option Public
Dim DraftDb As NotesDatabase
Dim ProdDb As NotesDatabase
Dim doc,doc1,olddoc As NotesDocument
Dim prodcode ,prodc,var,flag As Variant
Dim prodView As NotesView, draftView As NotesView
Dim dc As NotesDocumentCollection
Dim Server,Server1,dbName,dbName1,dbName2,dbName3,dbName4 As String
Dim temp1,temp2,temp3,temp4 As NotesRichTextItem
Dim FullString1,FullString2,FullString3,FullString,count As Variant
Dim workspace As NotesUIWorkspace
Sub Initialize
On Error GoTo ErrorHandler
Dim session As New NotesSession
Dim cnt As Integer
Server = "prd/well/pen/MY_NOTES"
Server1="dev/well/pen/MY_NOTES"
Set DraftDb=session.GetDatabase(Server1,"ProdSpec\MainDraft.nsf")
Set draftView=DraftDb.GetView("6. Reporting\MainDocs")
Set doc=draftView.GetFirstDocument
count=0
While Not doc Is Nothing
Set doc=draftView.Getnextdocument(doc)
count=count+1
flag=0
Wend
draftView.Autoupdate=True
Call draftView.Refresh()
MsgBox "Step 1 Completed:Images pulled successfully" & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Step 2: Use toolbar icon on top left corner of the screen to convert specs into PDF"
ErrorHandler:
Select Case flag
Case 1
Resume first
Case 2
Resume second1
Case 3
Resume third
Case 4
Resume forth
Case 5
Resume Done
End Select
End Sub
Thanks,
Suji M
Feedback response number WEBB9JXFJX created by ~Wendy Brekimarjip on 05/09/2014